home *** CD-ROM | disk | FTP | other *** search
- /* testexec.c - test viewexec.c (exec_cmd function) */
- #include "stdio.h"
- #include "cminor.h"
- long filesize ;
-
- int open_file(fn)
- char fn[] ;
- {
- int ret ;
- printf("\n open_file called - fn+ %s\n",fn);
- printf(" retyrn code:") ;
- scanf("%d",&ret) ;
- return(ret) ;
- }
-
- int set_filesize(chk_cltz)
- int chk_cltz ;
- {
- printf("\n set_filesize called - chk_ctlz = %d \n",chk_cltz) ;
- printf(" file size:") ;
- scanf("%1d",&filesize) ;
- }
-
- int close_file()
- {
- printf("\n close_file called\n") ;
- }
-
- int move_backward(nlines)
- int nlines ;
- {
- printf("\n move_backward called nlines= %d ",nlines) ;
- }
-
- int move_forward(nlines)
- int nlines ;
- {
- printf("\n move_forward called nlines= %d ",nlines) ;
- }
-
- int display_page()
- {
- printf("\n display_page called ") ;
- }
-
- int set_top_page()
- {
- printf("\n set_top_page called ") ;
- }
-
- int move_to(pos)
- long pos ;
- {
- printf("\n move_to called - pos = %d ",pos) ;
- }
-
- long get_pos()
- {
- long pos ;
-
- printf(" \n get_pos called ") ;
- printf(" \n new position:") ;
- scanf ("%1d",&pos) ;
- return( pos) ;
- }